package lab02.test13;

/**
 * Created by 婷婷 on 2017/10/20.
 */
public class School extends ComputerAverage {
    @Override
    double average(double[] scores) {
        double sum = 0;
        double schoolAverageScores;
        //利用for循环求分数和
        for (int i = 0;i<scores.length;i++){
            sum += scores[i];
        }
        schoolAverageScores = sum/scores.length;
        return schoolAverageScores;
    }
}
